{extend name="public/base"}

{block name="main"}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 征集广告语

    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>

    <a class="btn btn-success radius r" target="_blank" style="line-height:1.6em;margin-top:3px; margin-right: 20px;" href="{:url('download_excel6')}" title="下载excel" >
        下载excel
    </a>
</nav>

<div class="Hui-article">
    <article class="cl pd-20">
        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                <tr class="text-c">
                    <th width="80">ID</th>
                    <th width="100">姓名</th>
                    <th width="100">电话</th>
                    <th width="300">珍湘酒广告语</th>
                    <th width="300">审核状态</th>
                    <th width="100">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="data" id="vo"}
                <tr class="text-c">
                    <td>{$vo.id}</td>
                    <td><u style="cursor:pointer" class="text-primary">{$vo.username}</u></td>
                    <td><u style="cursor:pointer" class="text-primary">{$vo.mobile}</u></td>
                    <td><u style="cursor:pointer" class="text-primary">{$vo.advert}</u></td>
                    <td><u style="cursor:pointer" class="text-primary">
                        {if $vo.status eq 0}
                            <a title="同意" data-href="{:url('common/save_model_field', ['id' => $vo['id'], 'field' => 'status', 'value' => 1, 'model' => 'advert'])}" class="ml-5 is_ok" style="text-decoration:none">允许通过</a>
                            <a title="拒绝" data-href="{:url('common/save_model_field', ['id' => $vo['id'], 'field' => 'status', 'value' => -1, 'model' => 'advert'])}" class="ml-5 is_no" style="text-decoration:none">不允通过</a>
                        {elseif $vo.status eq 1}
                            <span style="color: green">审核已通过</span>
                        {else}
                            <span style="color: red">审核未通过</span>
                        {/if}
                    </u></td>
                    <td class="td-manage">
                        <!--<a title="编辑" href="javascript:;" onclick="layer_show('广告语审核','{:url("save_advert", ["id" => $vo['id']])}','0','0')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>-->
                        <a title="删除" data-href="{:url('common/save_model_field', ['id' => $vo['id'], 'field' => 'delete', 'value' => 1, 'model' => 'advert'])}" class="ml-5 delete" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
        <div class="cl pd-5 bg-1 bk-gray tp5-page mt-20">
            {$data->render()}
        </div>
    </article>
</div>
{/block}